from toee import *
from utilities import *
from InventoryRespawn import *


def san_dialog( attachee, triggerer ):
	triggerer.begin_dialog( attachee, 1 )
	attachee.turn_towards(triggerer)
	return SKIP_DEFAULT

def san_first_heartbeat(attachee, triggerer):
	game.timevent_add(respawn, (attachee), 86400000 ) #86400000ms is 24 hours
	game.new_sid = 0
	return RUN_DEFAULT

def respawn(attachee):
	box = find_container_near(attachee,1053)
	RespawnInventory(box)
	game.timevent_add(respawn, (attachee), 86400000 ) #86400000ms is 24 hours
	return
